package util

import (
	"os"
)

func GetLastModifyTime(articleId string) string {
	path := GetArticlePath(articleId)
	file, err := os.Open(path)
	if err != nil {
		return "未知"
	}
	fileInfo, err := file.Stat()
	if err != nil {
		return "未知"
	}
	return fileInfo.ModTime().Format("2006-01-02 15:04:05")
}
